import { Meta, Story, Preview, Props } from "@storybook/addon-docs/blocks";
import TextArea from "components/TextArea";

<Meta title="Components/TextArea" component={TextArea} />

# TextArea

Html TextArea.

## Props

<Props of={TextArea} />

## Examples

<Preview>
  <Story name="basic textarea">
    <div>
      <p>Normal</p>
      <TextArea name="test" placeholder="please input a word" />
      <p>Auto resize</p>
      <TextArea name="test" autoResize maxHeight={200} placeholder="please input a word" />
      <p>Readonly</p>
      <TextArea name="test" placeholder="please input a word" readOnly />
      <p>Disabled</p>
      <TextArea name="test" placeholder="please input a word" disabled />
    </div>
  </Story>
</Preview>
